pub fn new_birthday_probability(n: u32) -> f64 {
    if n > 365 {
        return 1.0;
    }
    let mut result: f64 = 1.0;
    for i in 0..n{
        result = result * ((365.0-i as f64)/365.0);
    }

    return 1.0 - result;
}
